package org.example.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.example.entity.Emp;

import java.util.List;

@Mapper
public interface EmpMapper extends BaseMapper<Emp> {
     Emp selectEmpByUsernameAndPassword(@Param("username") String username,@Param("password") String password);

     List<Emp> listByName(@Param("empName") String empName);

     int add(Emp emp);

     int update(Emp emp);
}
